<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<head>
    <meta charset="utf-8" />
    <title><?php echo (L("Qibei")); ?></title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
    <meta content="" name="description" />
    <meta content="" name="author" />

    <!-- ================== BEGIN BASE CSS STYLE ================== -->
    <link href="./Public/Admin/assets/plugins/jquery-ui/themes/base/minified/jquery-ui.min.css" rel="stylesheet" />
    <link href="./Public/Admin/assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="./Public/Admin/assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <link href="./Public/Admin/assets/css/animate.min.css" rel="stylesheet" />
    <link href="./Public/Admin/assets/css/style.min.css" rel="stylesheet" />
    <link href="./Public/Admin/assets/css/style-responsive.min.css" rel="stylesheet" />
    <link href="./Public/Admin/assets/css/theme/default.css" rel="stylesheet" id="theme" />
    <!-- ================== END BASE CSS STYLE ================== -->
    <!-- 网站图标 -->
    <link rel="shortcut icon" href="./Public/Admin/public/img/favicon/favicon.ico" type="image/x-icon">
    <link rel="icon" href="./Public/Admin/public/img/favicon/favicon.ico" type="image/x-icon">

</head>
<body>
<!-- begin #page-loader -->
<div id="page-loader" class="fade in"><span class="spinner"></span></div>
<!-- end #page-loader -->

<div class="login-cover">
    <div class="login-cover-image"><img src="./Public/Admin/assets/img/login-bg/bg-1.jpg" data-id="login-cover-image" alt="" /></div>
    <div class="login-cover-bg"></div>
</div>
<script>
    function myCheck(){
        var msg="";
        if($('#bas_password').val()==""||$('#shop_account').val()==""){
            msg +="登录用户名密码不能为空<br/>";
        }
        if(msg!=""){
            $('#modal-dialog .modal-body').html(msg);
            $('#aCheckAlert').click();
            return false;
        }
        return true;

    }
</script>
<!-- begin #page-container -->
<div id="page-container" class="fade">
    <!-- begin login -->
    <form id="login-form" method="post" class="smart-form client-form">
    <div class="login login-v2" data-pageload-addclass="animated flipInX">
        <!-- begin brand -->
        <div class="login-header">
            <div class="brand">
                <span class="logo"></span><?php echo (L("system")); ?>
                <small><?php echo (L("systemLogin")); ?></small>
            </div>
            <div class="icon">
                <i class="fa fa-sign-in"></i>
            </div>
        </div>
        <!-- end brand -->
        <div class="login-content">
            <form action="index.html" method="POST" class="margin-bottom-0">
                <div class="form-group m-b-10">
                    <input type="text" id="shop_account" name="shop_account" maxlength="20" value="" class="form-control input-lg" placeholder="<?php echo (L("inputUsername")); ?>" />
                </div>
                <div class="form-group m-b-10">
                    <input type="password" id="bas_password" name="bas_password" maxlength="20" class="form-control input-lg" placeholder="<?php echo (L("inputPassword")); ?>" />
                </div>
                <div  class="form-group m-b-2" style="clear: both"><br/></div>

                <div class="login-buttons">
                    <button type="button" class="btn btn-success btn-block btn-lg" onclick="dologin()"><?php echo (L("logIn")); ?></button>
                </div>
                <input type="hidden" name="__token__" value=""  />
                <div class="m-t-20" id="res">
                    

                </div>
            </form>
        </div>
    </div>
    </form>
    <!-- end login -->


</div>
<!-- end page container -->
<a id="aCheckAlert" href="#modal-dialog" class="btn btn-sm btn-success" data-toggle="modal" style="display: none"></a>
<!-- #modal-dialog -->
<div class="modal fade" id="modal-dialog">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title"><?php echo (L("prompt")); ?></h4>
            </div>
            <div class="modal-body">
                Modal body content here...
            </div>
            <div class="modal-footer">
                <a href="javascript:;" class="btn btn-sm btn-white" data-dismiss="modal"><?php echo (L("shutDown")); ?></a>
            </div>
        </div>
    </div>
</div>

<!-- ================== BEGIN BASE JS ================== -->
<script src="./Public/Admin/assets/plugins/jquery/jquery-1.9.1.min.js"></script>
<script src="./Public/Admin/assets/plugins/jquery/jquery-migrate-1.1.0.min.js"></script>
<script src="./Public/Admin/assets/plugins/jquery-ui/ui/minified/jquery-ui.min.js"></script>
<script src="./Public/Admin/assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<!--[if lt IE 9]>
<script src="./Public/Admin/assets/crossbrowserjs/html5shiv.js"></script>
<script src="./Public/Admin/assets/crossbrowserjs/respond.min.js"></script>
<script src="./Public/Admin/assets/crossbrowserjs/excanvas.min.js"></script>
<![endif]-->
<script src="./Public/Admin/assets/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="./Public/Admin/assets/plugins/jquery-cookie/jquery.cookie.js"></script>
<!-- ================== END BASE JS ================== -->

<!-- ================== BEGIN PAGE LEVEL JS ================== -->
<script src="./Public/Admin/assets/js/login-v2.demo.min.js"></script>
<script src="./Public/Admin/assets/js/apps.min.js"></script>
<!-- ================== END PAGE LEVEL JS ================== -->

<script>
    $(document).ready(function() {
        App.init();
        LoginV2.init();
    });
    function dologin(){
        $.getJSON("index.php?m=Admin&c=Index&a=dologin&shop_account="+$('#shop_account').val()+"&bas_password="+$('#bas_password').val(),function(result){
        if(result==0){
            var temp=' <div class="row alert alert-danger fade in">';
                temp+='<button class="close" data-dismiss="alert">';
                temp+='×';
                temp+='</button>';
                temp+='<i class="fa-fw fa fa-times"></i>';
                temp+='<strong><?php echo (L("userPassError")); ?>!</strong>';
                temp+='</div>';
            $("#res").html(temp);
        
        }else{
            location.href = "index.php?m=Admin&c=Index&a=index";
        }
       }); 

    }
    
</script>
</body>
</html>